wvd-sh/WVD scaling script/Config-MSI.xml (34 lines of code) (raw):

<?xml version="1.0" encoding="utf-8"?> <!-- Version 1.1.0 --> <RDMIScale> <Azure> <!--Settings required to authenticate to Azure subscription --> <Variable Name="AADTenantId" Value="ad638926-c4fa-462d-8b20-1dd3f162028b"/> <Variable Name="AADApplicationId" Value="4e3b45f2-1ed3-4e08-a3ed-3efefb814d6c"/> <!-- use AADServicePrincipalSecret filed for testing only, set via New-StoredCredential --> <Variable Name="AADServicePrincipalSecret" Value=""/> <!--Azure subscription name --> <Variable Name="currentAzureSubscriptionId" Value="c779fcf5-46e5-407b-ab0d-6c32c501782d"/> <!-- WVD tenant name --> <Variable Name="tenantName" Value="RdsIsmTenant1"/> <!-- WVD tenant name --> <Variable Name="tenantGroupName" Value="Default Tenant Group"/> <!-- WVD host pool name --> <Variable Name="hostPoolName" Value="WS2016-p"/> <!-- Hostpool session Load Balancing Type --> <Variable Name="PeakLoadBalancingType" Value="DepthFirst"/> <Variable Name="OffPeakLoadBalancingType" Value="BreadthFirst"/> <!-- session Load Balancing Peak Hours --> <Variable Name="sessionLoadBalancingPeakHours" Value="9:00-18:00"/> <!-- session Load Balancing off Peak Hours --> <Variable Name="sessionLoadBalancingOffPeakHours" Value="18:00-22:00"/> <!-- Key Vault Name --> <Variable Name="KeyVaultName" Value="wvdmsikeyvault"/> </Azure> <Deployment> <Variable Name="Rdbroker" Value="https://rdbroker.wvd.microsoft.com"/> <!-- Is Service Principal Value is "False" then provide keyvault key name of the Password stored --> <variable Name="KeyName" Value = "Keyvault key name of the Password stored"/> <!-- Is Service Principal is "False" then provide username with fully qualified domain name --> <Variable Name="Username" Value="74e98113-e2ca-48c8-963d-fe33ae70c756"/> <!-- use Password filed for testing only, set via keyvault secret --> <Variable Name="Password" Value=""/> <!-- accepted values True/False, True indicate service principal is being used to authenticate to WVD --> <Variable Name="isServicePrincipal" Value="True" /> </Deployment> <RdmiScaleSettings> <!-- Begin of the peak usage time --> <Variable Name="BeginPeakTime" Value="04:00:00"/> <!-- End of the peak usage time --> <Variable Name="EndPeakTime" Value="12:00:00"/> <!-- Time difference between local time and UTC, in hours --> <Variable Name="TimeDifferenceInHours" Value="0" /> <!-- Maximum number of sessions per CPU threshold used to determine when a new RDSH server needs to be started --> <Variable Name="SessionThresholdPerCPU" Value="1"/> <!-- Minimum number of host pool VMs to keep running during off-peak usage time --> <Variable Name="MinimumNumberOfRDSH" Value="1"/> <!-- Number of seconds to wait before forcing users to logoff. If 0, don't force users to logoff --> <Variable Name="LimitSecondsToForceLogOffUser" Value="5"/> <!-- Message title sent to a user before forcing logoff --> <Variable Name="LogOffMessageTitle" Value="System Under Maintenance"/> <!-- Message body to send to a user before forcing logoff --> <Variable Name="LogOffMessageBody" Value="Please save your work and logoff!"/> </RdmiScaleSettings> </RDMIScale>